image=registry.cn-hangzhou.aliyuncs.com/bookshare-ruiya/ubuntu-dev

# get latest version num
ver=201

tag=v-$ver

# build and push
docker build -t $image:latest -t $image:$tag .
docker push $image:latest
docker push $image:$tag

rm -rf *.jar

echo 'pushed image to '$image':v-'$ver